<%-- 
    Document   : book
    Created on : 19.07.2009, 10:38:09
    Author     : Mario
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="refresh" content="0; URL=index.jsp">
        <link rel="stylesheet" type="text/css" href="serverStyles.css" />
        <title>JSP Page</title>
    </head>
    <body>
        <jsp:useBean id="consumers" scope="session" class="de.stalinski.accounting.ConsumersConnector" />
        <jsp:useBean id="booking" scope="session" class="de.stalinski.accounting.BookingsConnector" />
        <jsp:useBean id="beep" scope="session" class="de.stalinski.util.Beep" />

        <%
        beep.beep();
        String fn = request.getParameter("fn");
        String sn = request.getParameter("sn");
        String sort = request.getParameter("sort");
        String un = request.getParameter("un");
        Integer amount = Integer.parseInt(request.getParameter("amount"));
        String id = request.getParameter("id");

        booking.book(id, fn, sn, un, sort, amount);


        %>
    </body>
</html>
